'''
Created on 23 mars 2012

@author: kwann
'''
# Modulate LED color and intensity with respect to time
# author: Erik Hollembeak

from roomba import *
from time import sleep

roomba = RoombaClassic('/dev/ttyUSB0', baud=19200)

roomba.start()
roomba.safe()

roomba.leds(0, 0)

for i in range(0, 256):
    roomba.leds(255 - i, i)
    sleep(0.01)

roomba.close()

